import 'package:flutter/material.dart';
import 'package:flutter_demo/components/article_item/view.dart';
import 'package:flutter_demo/components/nav_tools/view.dart';

class HomePage extends StatelessWidget {
  const HomePage({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("123"),
      ),
      body: Padding(
        padding: const EdgeInsets.all(8.0),
        child: Column(
          children: [
            // Padding(
            //   padding: EdgeInsets.only(bottom: 10),
            //     child: NavToolsComponent(),
            // ),
            Expanded(
              child: ListView(
                children: [
                  ArticleItemComponent(),
                  ArticleItemComponent(),
                  ArticleItemComponent(),
                  ArticleItemComponent(),
                  ArticleItemComponent(),
                  ArticleItemComponent(),
                  ListTile(
                    title: Text("这是标题"),
                    subtitle: Text("内容区域"),
                    leading: Image(
                      width: 100,
                      image: NetworkImage(
                          "https://th.bing.com/th/id/R.a902a2666359a8cdfdb4a5073d402423?rik=%2fOAi8FFhylA5IQ&riu=http%3a%2f%2fimg.ewebweb.com%2fuploads%2f20191203%2f19%2f1575371671-fMmhxsnHNX.jpg&ehk=R7dew66vN%2bgvvyJL3I8BL00tsQwYL%2bv8PIqeUSKgzk4%3d&risl=&pid=ImgRaw&r=0"),
                    ),
                  ),
                  Center(child: Text("首页1")),
                ],
              ),
            ),
          ],
        ),
      ),
    );
  }
}
